﻿using System;
using System.Collections.Generic;
using System.Web;

namespace SaleManagement.DTO
{   
    //Class Product
    public class Product
    {
        //Instance field
        private int ProductID;
        private string ProductName;
        private int Category;
        private int Supplier;
        private float Price;
        private string Location;
        private string Barcode;
        private int UnitInStock;
        private int UnitOnOrder;
        private byte[] Image;

        public byte[] image
        {
            get { return Image; }
            set { Image = value; }
        }

        //Constructor without parameter
        public Product(){}

        //Constructor with parameter
        public Product(int ProductID,string Name,int Category,int Supplier,float Price,string Barcode,
                        string location, int UnitInStock,int UnitOnOrder,byte[]image) 
        {
            this.ProductID = ProductID;
            this.ProductName = Name;
            this.Category = Category;
            this.Supplier = Supplier;
            this.Price = Price;
            this.Barcode = Barcode;
            this.Location = location;
            this.UnitInStock = UnitInStock;
            this.UnitOnOrder = UnitOnOrder;
            this.Image = image;
        }

        public int productID
        {
            get { return ProductID; }
            set { ProductID = value; }
        }
        
        public string productName
        {
            get { return ProductName; }
            set { ProductName = value; }
        }
       
        public int category
        {
            get { return Category; }
            set { Category = value; }
        }
        
        public int supplier
        {
            get { return Supplier; }
            set { Supplier = value; }
        }
        
        public float price
        {
            get { return Price; }
            set { Price = value; }
        }
        
        public string location
        {
            get { return Location; }
            set { Location = value; }
        }
        
        public string barcode
        {
            get { return Barcode; }
            set { Barcode = value; }
        }
        
        public int unitInStock
        {
            get { return UnitInStock; }
            set { UnitInStock = value; }
        }
       

        public int unitOnOrder
        {
            get { return UnitOnOrder; }
            set { UnitOnOrder = value; }
        }

    }
}